<?php

namespace Admin\Form;

use Zend\Form\Annotation;
use Admin\Form\ProfileForm;
/**
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 * @Annotation\Name("form_new_user")
 */
class UserForm extends ProfileForm{

    /**
     * @Annotation\Required(false)
     * @Annotation\Attributes({"type":"hidden"})
     * @Annotation\Attributes({"id":"userID","class":"userID"})
     */
    public $userID;

    /**
     * @Annotation\Type("Zend\Form\Element\Text")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filter({"name":"StripTags"})
     * @Annotation\Filter({"name":"StringTrim"})
     * @Annotation\Validator({"name":"StringLength", "options":{"min":"1"}})
     * @Annotation\Validator({"name":"Regex", "options":{"pattern":"/^[a-zA-Z][a-zA-Z0-9_-]{0,24}$/"}})
     * @Annotation\Options({"label":"Tên đăng nhập:"})
     * @Annotation\Attributes({"id":"userName","class":"userName"})
     */
    public $userName;

    /**
     * @Annotation\Type("Zend\Form\Element\Select")
     * @Annotation\Required({"required":"true" })
     * @Annotation\Filters({"name":"StripTags"},{"name":"StringTrim"}}) 
     * @Annotation\Options({"label":"Phân quyền",
     *                      "value_options" : {"1":"admin","2":"Biên mục","3":"Thủ thư","4":"Bạn đọc"}})
     * @Annotation\Attributes({"id":"role","class":"role"})
     */
    public $roleID;

}